package com.ruoyi.project.module.fbsDetail.mapper;

import com.ruoyi.project.module.fbsDetail.domain.FbsDetail;
import com.ruoyi.project.module.fbsHead.domain.FbsHead;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * FBS明细 数据层
 * 
 * @author lcx
 * @date 2018-09-17
 */
public interface FbsDetailMapper 
{
	/**
     * 查询FBS明细信息
     * 
     * @param id FBS明细ID
     * @return FBS明细信息
     */
	public FbsDetail selectFbsDetailById(Integer id);
	
	/**
     * 查询FBS明细列表
     * 
     * @param fbsDetail FBS明细信息
     * @return FBS明细集合
     */
	public List<FbsDetail> selectFbsDetailList(FbsDetail fbsDetail);
	
	/**
     * 新增FBS明细
     * 
     * @param fbsDetail FBS明细信息
     * @return 结果
     */
	public int insertFbsDetail(FbsDetail fbsDetail);
	
	/**
     * 修改FBS明细
     * 
     * @param fbsDetail FBS明细信息
     * @return 结果
     */
	public int updateFbsDetail(FbsDetail fbsDetail);
	
	/**
     * 删除FBS明细
     * 
     * @param id FBS明细ID
     * @return 结果
     */
	public int deleteFbsDetailById(Integer id);
	
	/**
     * 批量删除FBS明细
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteFbsDetailByIds(String[] ids);

	public int deleteFbsDetailByHeadId(String[] ids);

    List<FbsDetail> selectFbsDetailListAsSearchRow(@Param("products") FbsDetail fbsDetail, @Param("searchRow") String[] searchRow);


    /*合计 一个的搜索*/
    List<FbsDetail> selectFbsDetailListAsSearchRowAsSum(@Param("products") FbsDetail fbsDetail, @Param("searchRow") String[] searchRow);

    /*合计*/
	List<FbsDetail> selectFbsDetailListAsSum(FbsDetail fbsDetail);
}